package com.itrip.itriosearch.mapper;

import com.itrip.itriosearch.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author 四阶段项目二组
 * @since 2020-02-25
 */
public interface UserMapper extends BaseMapper<User> {

    User getUserByName(@Param(value = "userCode") String userCode);

   Integer insertUse(User user);

    /**
     * 修改激活信息
     * @return
     */
    Integer update(@Param(value = "activated") int activated,@Param(value = "id") Long id);
}
